import Home from "../pages/home";
import Login from "../pages/login";
import basicTable from "../pages/table/basicTable";
import DragTable from "../pages/table/DragTable";
// import Test from "../pages/test";
import React from 'react'
const Test = React.lazy(()=>import('../pages/test'))

const routes = [
    {
        path: '/login',
        component: Login,
        requiresAuth: false,
        layout: false
    },
    {
        path: '/',
        component: Home,
        requiresAuth: true,
        layout: true,
        exact: true,
    },
    {
        path: '/test',
        component: Test,
        requiresAuth: true,
        layout: true
    },
    {

        path: '/table/basic-table',
        component: basicTable,
        requiresAuth: true,
        layout: true
    },
    {
        path: '/table/drag-table',
        component: DragTable,
        requiresAuth: true,
        layout: true
    },
]

export default routes